package com.woniuxy.credit_loans.staff_ma.service;

import com.woniuxy.credit_loans.entity.User;
import com.woniuxy.credit_loans.staff_ma.dto.UserDto;
import com.woniuxy.credit_loans.staff_ma.vo.UserVo;

import java.util.List;

public interface UserService {

    User selectByName(String userName);

    List<User> selectAll();

    int deleteByPrimaryKey(Long id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Long id);

    User login(UserDto dto);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    //查看账户是否已经注册
    User selectByUserAcc(String userAcc);

    //注册
    int register(User user);

    //查询登录用户是否有借贷记录
    UserVo selectBorrowHistory(UserVo userVo);

    //查询用户信息
    User selectByUser(User user);

    //修改密码
    UserDto updateUserPwd(Long userId);

}
